package com.lky.util;

/**
 * Created by Lenovo on 2018/1/23.
 * 工具类，将pageIndex转换为rowIndex
 */
public class PageCalculator {

    public static int calculateRowIndex(int pageIndex,int pageSize){
        return (pageIndex>0)?(pageIndex - 1) * pageSize:0;
    }
}
